home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_065 / mwb / mwb.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  58 lines

  1.  
  2. /*
  3.  * MWB.H
  4.  *
  5.  *  (c)1987 Matthew Dillon.  All Rights Reserved.
  6.  */
  7.  
  8.  
  9. #include <exec/types.h>
  10. #include <exec/ports.h>
  11. #include <exec/memory.h>
  12.  
  13. typedef struct MsgPort PORT;
  14.  
  15. #define PORT_NAME "MWB_PORT"
  16. #define SCREEN_NAME "Other Workbench Screen"
  17. #define TASK_NAME "MWB_RESIDENT"
  18. #define MAXSCREENS  32
  19.  
  20. #define FL_NOREMOVE 0x01
  21. #define FL_DEFINED  0x02
  22.  
  23. #define OP_QUIT         1
  24. #define OP_NEWSCREEN    2
  25. #define OP_SETSCREEN    3
  26. #define OP_CLOSEUNUSED  4
  27. #define OP_STARTUP      5   /* garbage message for startup handshaking  */
  28.  
  29.  
  30. typedef struct {
  31.     long screen;
  32.     long scrmodes;
  33.     short width;
  34.     short height;
  35.     short depth;
  36.     short flags;
  37. } XIT;
  38.  
  39. typedef struct {
  40.     struct Message msg;
  41.     long com;
  42.     long screeno;
  43.     XIT xit;
  44. } XMSG;
  45.  
  46. typedef struct {
  47.     PORT port;
  48.     long segment;
  49.     char scrname[sizeof(SCREEN_NAME)+1];    /* +1 for good measure  */
  50.     char taskname[sizeof(TASK_NAME)+1];     /* +1 for good measure  */
  51.     XIT xit[MAXSCREENS];
  52. } XPORT;
  53.  
  54.  
  55. extern PORT *FindPort(), *CreatePort();
  56.  
  57.  
  58.